<?php
/**
 * 添加管理员模板
 * User: ZFC
 * Date: 2015/7/7
 * Time: 18:46
 */

use common\widgets\ActiveForm;
use common\models\DAO\AdminRole;

$this->title = '添加管理员';

$form = ActiveForm::begin();
echo $form->field($model, 'adminName')->textInput();
echo $form->field($model, 'adminPass')->passwordInput();
echo $form->field($model, 'repeatPass')->passwordInput();
echo $form->field($model, 'roleID')->dropDownList(AdminRole::getSelectList());
echo $form->field($model, 'realName')->textInput();
echo $form->field($model, 'email')->textInput();
echo $form->field($model, 'phone')->textInput();
ActiveForm::end();